
<!DOCTYPE html>
<html lang="zh-CN">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
  <meta charset="utf-8" /> 
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> 
  <title>关闭当前网页窗口</title>
 </head> 
 <body> 
  <article> 
   <div id="card">
       <br /><br />
       <h>授权成功</h>
       <br /><br />
       <a href="javascript:void(0)" id="closeWindow">关闭当前窗口</a>
       
   </div>
  <script>

var readyFunc = function onBridgeReady() {
    var curid;
    var curAudioId;
    var playStatus = 0;
 
    
    // 关闭当前webview窗口 - closeWindow
    document.querySelector('#closeWindow').addEventListener('click', function(e){
    	WeixinJSBridge.invoke('closeWindow',{
        },function(res){
            
            //alert(res.err_msg);
 
       });
    });    
    
}


if (typeof WeixinJSBridge === "undefined") {
  document.addEventListener('WeixinJSBridgeReady', readyFunc, false);
} else {
  readyFunc();
}


</script> 
     </article>     
 </body>
</html>